import Relay from "react-relay";

export default class createEnterpriseServiceDicMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { createEnterpriseServiceDic }`;
    }

    getVariables() {
        return {
            argsInput: {
                parentId:this.props.parentId,
                name: this.props.name,
                enid: this.props.enid,
                level: this.props.level
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on createEnterpriseServiceDicPayload {
            data {
                errorCode
                value
                token
                totalResult
                id
                enterpriseServiceDic{
                  parentId
                name
                dicId
                enid
                level
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on createEnterpriseServiceDicPayload {
        data {
                errorCode
                value
                token
                totalResult
                id
                enterpriseServiceDic{
                  parentId
                name
                dicId
                enid
                level
                }
            }
                }
            `]
        }];
    }

}